//
//  GGStatus_ThreeTabCell.m
//  XTXOneToOne
//
//  Created by Canny on 2018/11/15.
//  Copyright © 2018年 WK. All rights reserved.
//

#import "GGStatus_ThreeTabCell.h"

@implementation GGStatus_ThreeTabCell

-(void)setDataSource:(LTOrderCellModel *)dataSource{
    self.lab2.text = @"开仓价";
    self.lab3.text = @"开仓数量";
    [super setDataSource:dataSource];
    

    if ([dataSource.order_status integerValue]==0){
        [self.btn_status setTitle:@"待成交" forState:UIControlStateNormal];
        self.btn_status.hidden=NO;
    }else if([dataSource.order_status integerValue]==1){
        [self.btn_status setTitle:@"已成交" forState:UIControlStateNormal];
        self.btn_status.hidden=NO;
    }else if([dataSource.order_status integerValue]==2){
        [self.btn_status setTitle:@"平仓中" forState:UIControlStateNormal];
        self.btn_status.hidden=NO;
    }else if([dataSource.order_status integerValue]==3){
        [self.btn_status setTitle:@"已取消" forState:UIControlStateNormal];
        self.btn_status.hidden=NO;
    }
    //    @0:待成交；@1:已成交；@2:平仓中;@3:撤销
}
-(void)statusAction{
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
